const cartList1=(state=[],action)=>{
    let {type,payload}=action
    switch(type){
        case "CART_LIST":
            return [...state,...payload]
        default:
            return state
    }
}


const cartList=(state={},action)=>{
    // let {type}
    return {
        cartList:cartList1(state.cartList,action)
         
    }
}

export default cartList